package com.ufm.syslog.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ufm.syslog.dao.SyslogMapper;
import com.ufm.syslog.pojo.Syslog;
import com.ufm.syslog.service.ISyslogService;
@Service
public class SyslogServicImpl implements ISyslogService {
	@Autowired  
    private SyslogMapper syslogMapper;

	@Override
	public List<Syslog> findAll(Map params) {
		return syslogMapper.findAll(params);
	}

	@Override
	public void insert(Syslog syslog) {
		syslogMapper.insert(syslog);

	}

	@Override
	public void delete(long id) {
		syslogMapper.delete(id);

	}

	@Override
	public void deleteAll() {
		syslogMapper.deleteAll();
		
	}

}
